package com.im.tcp.feign;

import com.lld.im.common.ResponseVO;
import com.lld.im.common.model.SignCheckReq;
import com.lld.im.common.model.message.CheckSendMessageReq;
import feign.Headers;
import feign.RequestLine;

public interface RpcServer {

    /**
     * 使用feign远程调用服务端接口 方式为post url为/message/checkSend
     * @param req
     * @return
     */
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestLine("POST /message/checkSend")
    public ResponseVO checkMessage(CheckSendMessageReq req);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestLine("POST /rpc/user/checkSign")
    public ResponseVO checkSign(SignCheckReq req);
}
